package com.westa.smallshop.voiceprint;

import android.support.annotation.NonNull;
import android.text.TextUtils;

import com.alibaba.fastjson.JSONObject;
import com.westa.smallshop.data.source.AccountDataSource;
import com.westa.smallshop.data.source.remote.BaseDataSource;

import static com.google.common.base.Preconditions.checkNotNull;

/**
 * Created by cy123 on 2016/9/13.
 */
public class VoiceRegisterPresenter implements VoiceRegisterContract.Presenter {


    @NonNull
    private final VoiceRegisterContract.View mLoginView;

    @NonNull
    private final AccountDataSource mAccountDataSource;

    public VoiceRegisterPresenter(@NonNull VoiceRegisterContract.View loginView, @NonNull AccountDataSource accountDataSource) {

        mLoginView = checkNotNull(loginView);
        mAccountDataSource = checkNotNull(accountDataSource);

        mLoginView.setPresenter(this);
    }

    @Override
    public void start() {

    }


    @Override
    public void destroy() {

        mAccountDataSource.cancelLoadRequest();
    }
}
